/* 首页样式表 */


/* 板块一 :顶部导航 */

#topnav {
    background-color: #333333;
    line-height: 40px;
}

#topnav a {
    font-size: 12px;
    color: #b0b0b0;
}

#topnav span {
    width: 2px;
    font-size: 12px;
    padding: 0 10px;
    color: #424242;
}

#topnav .top_header_cart {
    width: 112px;
    margin-left: 15px;
    display: inline-block;
    background-color: #424242;
}

#topnav .top_header_cart img {
    width: 20px;
    height: 20px;
    margin: -5px 6px 0 0;
}

#topnav .top_header_cart span {
    color: #b0b0b0;
    padding: 0;
}


/* 板块二 : 头部:logo+nav+search */

header {
    background-color: #f7f7f7;
}

#header_menu {
    position: relative;
    z-index: 999;
    height: 50px;
    background-color: #f4f4f4;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.3);
}

#header_menu>a {
    padding: 11px 28px;
}


/* 头部导航 */

#header_nav>li {
    float: left;
    width: 72px;
    height: 50px;
    text-align: center;
}

#header_nav>li>a {
    line-height: 50px;
    font-size: 14px;
    color: #767676;
}

#header_nav>li:hover {
    background-color: #fff;
}

#header_nav>li:hover a {
    color: #ed1b24;
}

#header_nav>li:hover #sub_header_nav {
    display: block;
}

.header_nav_search {
    cursor: pointer;
}

.header_nav_search span {
    display: block;
    margin: 15px auto;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background: url(../images/header-scrae.png);
}

#sub_header_nav {
    position: absolute;
    top: 50px;
    left: 0;
    width: 1140px;
    height: 310px;
    padding: 22px 0 44px;
    box-sizing: border-box;
    background-color: #fff;
    display: none;
}

#sub_header_nav li {
    float: left;
    width: 152px;
    height: 244px;
    margin: 0 19px;
    text-align: center;
    font-size: 14px;
}

#sub_header_nav li>a {
    display: block;
    width: 152px;
    height: 164px;
}

#sub_header_nav li>a img {
    width: 152px;
}

#sub_header_nav li h4 {
    font-size: 16px;
    color: #333;
}

#sub_header_nav li p {
    color: #989898;
    line-height: 44px;
}

#sub_header_nav li span {
    color: #ed1c24;
}


/* 板块三 : 横幅 : 轮播图+侧边栏商品 */

#banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #ccc;
    overflow: hidden;
}


/* 轮播图 */


/* 子盒子比父盒子大,但让子盒子水平居中 */


/* 跟子盒子比父盒子小的解决方法一样 */

#bannerInner {
    position: absolute!important;
    top: 0!important;
    left: 50%!important;
    z-index: 5!important;
    margin-left: -960px!important;
}

#bannerInner .btnleft {
    background-position: -5px 200px!important;
    left: 20%;
}

#bannerInner .btnright {
    background-position: -104px 200px!important;
    right: 20%;
}

#bannerInner>span {
    top: 0!important;
    background: none!important;
    background: rgba(0, 0, 0, 0) url(../images/nav.png) no-repeat!important;
    background-size: 150px 80px!important;
    width: 100px;
    height: 500px;
    opacity: 1!important;
}

#bannerInner:hover span {
    display: block!important;
}


/* 侧边栏商品 */

.category-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -570px;
    height: 500px;
}

#commodity_side_menu {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 77;
    width: 234px;
    height: 500px;
    padding: 30px 0;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
}

#commodity_side_menu li>a {
    display: block;
    padding: 0 30px;
    line-height: 48px;
    color: #fff;
    font-size: 14px;
}

#commodity_side_menu li>a>span::after {
    /* 字体图标 */
    font-family: 'icomoon';
    content: "\e920";
    font-size: 26px;
    float: right;
}

#commodity_side_menu li:hover {
    background-color: #ed1b24;
}

#commodity_side_menu .submenu {
    position: absolute;
    top: 0;
    left: 234px;
    height: 498px;
    padding-left: 32px;
    border: 1px solid #e0e0e0;
    border-left: none;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
}

#commodity_side_menu li:hover .submenu {
    /* 弹性布局有空再看 */
    display: flex;
    flex-wrap: wrap;
    writing-mode: vertical-lr;
}

#commodity_side_menu .submenu a {
    writing-mode: horizontal-tb;
    width: 228px;
    height: 74px;
    line-height: 74px;
    font-size: 14px;
    color: #000;
    display: block;
}

#commodity_side_menu .submenu a:hover {
    color: #ed1c24;
}

#commodity_side_menu .submenu img {
    vertical-align: middle;
}


/* 板块四 : 主体部分 : 主题顶部 + 各种产品 */

main {
    background-color: #f7f7f7;
    padding-bottom: 40px;
}


/* 主体顶部 */

#main_top {
    padding: 20px 0 50px 0;
}

#row_nav {
    width: 270px;
    height: 180px;
    font-size: 0;
    margin-bottom: 30px;
}

#row_nav a {
    float: left;
    width: 90px;
    height: 90px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
}

#row_nav a:nth-child(2n+1) {
    background-color: rgb(238, 50, 57, 0.5);
}

#row_nav a:nth-child(2n) {
    background-color: rgb(238, 50, 57, 0.8);
}


/* 过渡属性，一般搭配hover使用 */

#row_nav a:hover {
    background-color: rgb(238, 50, 57, 1);
    transition: all 0.5s;
}

#row_nav a img {
    display: block;
    margin: 0 auto;
}

#row>a {
    float: left;
    margin-left: 20px;
}

#row>a img {
    width: 270px;
    height: 180px;
}


/* 各种产品 */

#main_product>div {
    margin-top: 35px;
}

#star_product {
    overflow: hidden;
}

#star_product_list {
    width: 2280px;
    position: relative;
    right: 0;
    left: 0;
}

#star_product .caption {
    height: 50px;
    line-height: 50px;
}

#main_product .caption {
    height: 76px;
    line-height: 76px;
}

#star_product .caption>a,
#main_product .caption>a {
    color: #767676;
    font-size: 22px;
}

#star_product .caption>a:hover,
#main_product .caption>a:hover {
    color: #000;
}

#star_product .caption img,
#main_product .caption img {
    margin: -8px 4px 0 0;
}

#star_product .caption p,
#main_product .caption p {
    float: right;
}

#star_product .caption p span {
    padding: 0px 5px;
    text-align: center;
    font-size: 20px;
    color: #999;
    border: 1px solid #bcbcbc;
    cursor: pointer;
    font-weight: bold;
}

#star_product .caption p span:hover {
    color: #333;
    border-color: #ff0036;
}

#star_product .caption p span:first-child::after {
    font-family: 'icomoon';
    content: '\e91f';
}

#star_product .caption p span:last-child::after {
    font-family: 'icomoon';
    content: '\e920';
}

#main_product .caption p a {
    color: #000;
    font-size: 14px;
}

#main_product .caption p a:last-child {
    color: rgb(255, 91, 87);
}

#main_product .caption p a:hover {
    color: #ff5d59;
}

#main_product>div>img {
    width: 1140px;
    height: 370px;
    cursor: pointer;
}

#star_product li,
#main_product ul li {
    float: left;
    width: 270px;
    height: 340px;
    padding: 25px 10px;
    margin-right: 20px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
}

#main_product ul li:hover {
    box-shadow: 0 10px 25px rgb(0 0 0 / 20%);
    /* 盒子上移1px */
    transform: translateY(-1px);
    transition: all 0.5s;
}

#star_product li {
    background-color: #f7f7f7;
}

#star_product li:nth-child(4n),
#main_product ul li:nth-child(4n) {
    margin-right: 0px;
}

#main_product ul li {
    margin-top: 20px;
}

#star_product li>a,
#main_product ul li>a {
    display: block;
    width: 250px;
    height: 190px;
    margin-bottom: 20px;
}

#star_product li>a img,
#main_product ul li>a img {
    width: 190px;
    height: 190px;
}

#star_product li h4,
#main_product ul li>a h4 {
    font-size: 16px;
    color: #333;
}

#star_product li p,
#main_product ul li p {
    color: #989898;
    line-height: 38px;
}

#star_product ul li span,
#main_product ul li span {
    color: #ed1c24;
}

#star_product ul li del,
#main_product ul li del {
    color: #b0b0b0;
}

#main_product .news_list a {
    float: left;
    width: 270px;
    height: 286px;
    margin-right: 20px;
}

#main_product .news_list a:last-child {
    margin-right: 0px;
}

#main_product .news_list img {
    width: 270px;
    height: 180px;
}

#main_product .news_list .news_content {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #fff;
}

#main_product .news_list .news_content h6 {
    height: 40px;
    color: #333;
    font-size: 14px;
}

#main_product .news_list .news_content p {
    margin: 4px 0;
    color: #b0b0b0;
    /* 多行文本溢出省略 */
    -webkit-line-clamp: 2;
    /*(用来限制在一个块元素显示的文本的行数,2表示最多显示2行.为了实现该效果,它需要组合其他的WebKit属性*/
    display: -webkit-box;
    /*(和1结合使用,将对象作为弹性伸缩盒子模型显示)*/
    -webkit-box-orient: vertical;
    /*（和1结合使用,设置或检索伸缩盒对象的子元素的排列方式)*/
    overflow: hidden;
    /*（文本溢出限定的宽度就隐藏内容）*/
    text-overflow: ellipsis;
    /*（多行文本的情况下,用省略号 “…” 隐藏溢出范围的文本) */
}

#main_product .news_list .news_content span {
    color: #4b98ec;
}


/* 模块四 : 尾部  */

#our_service {
    margin: 50px 0 20px;
}

#our_service li {
    float: left;
    width: 148px;
    height: 50px;
    margin: 0 40px;
}

#our_service img {
    float: left;
    width: 24px;
    height: 24px;
    margin: 8px;
}

#our_service li div {
    float: left;
    color: #b2b2b2;
    font-size: 18px;
    font-weight: normal;
}

#our_service li p {
    font-size: 12px;
}

#footer_nav {
    padding: 40px 0 120px;
    border-top: 1px solid #eaeaea;
}

#footer_nav ul {
    float: left;
}

#footer_nav li {
    float: left;
    line-height: 35px;
    margin-right: 72px;
}

#footer_nav li h6 {
    font-size: 14px;
    color: #333;
}

#footer_nav li a {
    display: block;
    color: #767676;
}

#footer_nav li a:hover {
    color: #ff5d59;
}

#footer_nav .service_hotline {
    float: right;
    padding: 0 25px;
    border-left: 1px solid #eaeaea;
    text-align: center;
}

#footer_nav .service_hotline h6 {
    font-size: 14px;
    color: #6f6c71;
}

#footer_nav .service_hotline p {
    font-size: 26px;
    color: #ff5d59;
    margin: 15px 0;
}

#footer_nav .service_hotline a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ff5d59;
    color: #ff5d59;
    font-size: 12px;
}

#footer_nav .service_hotline a:nth-child(3) ::before {
    font-family: 'icomoon';
    content: '\e925';
}

#footer_nav .service_hotline a:last-child span::before {
    font-family: 'icomoon';
    content: '\e909';
}

.aboutus {
    position: relative;
}

.aboutus img {
    position: absolute;
    top: -24px;
    right: -72px;
    width: 80px;
    height: 80px;
    display: none;
}

.aboutus:hover img {
    display: block;
}


/* 模块五 : 底部导航 */

#bottom_nav {
    background-color: #313131;
    height: 100px;
    color: #666;
    font-size: 12px;
    line-height: 100px;
}

#bottom_nav img {
    margin: 0 50px;
    width: 155px;
    height: 25px;
}

#bottom_nav a {
    color: #666;
}

#bottom_nav a:hover {
    color: #fff;
}


/* 企业资质 */

#qualification {
    padding: 10px 0 100px;
    background-color: #f8f8f8;
    text-align: center;
}


/* 锚点链接 */

#anchor {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -630px;
    z-index: 9999;
    margin-top: -208px;
    width: 80px;
    height: 416px;
    font-size: 12px;
    display: none;
}

#anchor a {
    display: block;
    width: 30px;
    height: 30px;
    padding: 5px;
    background-color: #888;
    color: #fff;
    margin-bottom: 1px;
    text-align: center;
}

#anchor a:nth-child(2),
#anchor a:nth-child(3) {
    line-height: 30px;
}

#anchor a:hover {
    background-color: #ed1c24;
    transition: all .5s;
}